﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json.Linq;

namespace FBEntities.FBObjects
{
    public class FBPhoto : IFBObject
    {
        public string id;
        public FBFrom from;
        public FBTags tags;
        public string name;
        public string picture;
        public string source;
        public int height;
        public int width;
        public string link;
        public string icon;
        public DateTime created_time;
        public DateTime updated_time;

        #region IFBObject Members

        public void Parse(JObject text)
        {
            FBParseUtilities.Parse(text, this);
        }

        #endregion
    }

    public class FBTags : IFBObject
    {
        public List<FBTag> data;

        public FBTags()
        {
            data = new List<FBTag>();
        }
        #region IFBObject Members

        public void Parse(JObject text)
        {
            FBParseUtilities.Parse(text, this);
        }

        #endregion
    }

    public class FBTag : IFBObject
    {
        public string id;
        public string name;
        public float x;
        public float y;
        public DateTime created_time;

        #region IFBObject Members

        public void Parse(JObject text)
        {
            FBParseUtilities.Parse(text, this);
        }

        #endregion
    }

}
